package com.lihuinch.test.dingtalk.eventsubscribe.handler.impl;

import com.alibaba.fastjson.JSONObject;
import com.lihuinch.test.dingtalk.eventsubscribe.constant.TestConstants;
import com.lihuinch.test.dingtalk.eventsubscribe.handler.DingTalkEventHandler;
import com.lihuinch.test.dingtalk.eventsubscribe.handler.response.DingTalkEventVerifyUrlResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 用于飞书验证服务器url请求。
 *
 * @author lihu
 * @date 2021-8-27 16:16
 * @since
 */
@Service(DingTalkEventHandler.DING_TALK_EVENT_HANDLER + "_" + TestConstants.DingTalkEvent.CHECK_URL)
public class DingTalkEventCheckUrlHandler implements DingTalkEventHandler<DingTalkEventVerifyUrlResponse> {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public DingTalkEventVerifyUrlResponse handleEvent(JSONObject param) {

        logger.info("nothing todo");

        return new DingTalkEventVerifyUrlResponse();
    }
}
